import request from '@/utils/request'

/**
 * 获取班组自定义数据
 * @param getTeamCustomData
 */
export function getTeamCustomData(team) {
  return request({
    url: `/md/commonCustomDatas/getTeamCustomData`,
    method: 'get',
    params: team
  })
}
/**
 * 获取成员信息
 * @param getEmployeeVo
 */
export function getEmployeeVo(team) {
  return request({
    url: `/md/teams/getEmployeeVo`,
    method: 'get',
    params: team
  })
}
/**
 * 通过班组查询数据
 * @param inquire
 */
export function inquireTeams(data) {
  return request({
    url: `/md/teams/query`,
    method: 'get',
    params: data
  })
}
/**
 * 查询班组数据弹出框
 * @param list
 */
export function selectPageTeam(data) {
  return request({
    url: `/md/commonBrowsers/selectPageTeam`,
    method: 'post',
    data
  })
}
/**
 * 模糊查询员工信息弹出框
 * @param list
 */
export function selectPageEmployee(data) {
  return request({
    url: `/md/commonBrowsers/selectPageEmployee`,
    method: 'post',
    data
  })
}
/**
 * 查询产线数据弹出框
 * @param list
 */
export function selectPageProductLine(data) {
  return request({
    url: `/md/commonBrowsers/selectPageProductLine`,
    method: 'post',
    data
  })
}
/**
 * 保存
 * @param saveTeams
 */
export function saveTeams(data) {
  return request({
    url: `/md/teams/save`,
    method: 'post',
    data
  })
}

/**
 * 删除班组信息
 * @param delete
 */
export function deleteTeams(team) {
  return request({
    url: `/md/teams/delete`,
    method: 'get',
    params: team
  })
}
